﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///CIndex 的摘要说明
/// </summary>
public class CIndex
{
	public CIndex()
	{
		
	}

    public List<CForum> forumlist;
    public List<threads> LatestTopic;
    public List<threads> LatestPost;


    public void GetAllForum()
    {
        GetData gd = new GetData();
        forumlist = new List<CForum>();
        List<forums> f = gd.GetAllVisibleForum();
        if(f!=null)
        {
            foreach(forums ff in f)
            {
                CForum cf = new CForum(ff);
                cf.getTopicCount(0);
                cf.GetTodayTopic();
                cf.CutDescription();
                forumlist.Add(cf);
            }
        }
    }

    public void GetLatestTopic()
    {

    }

    public void GetLatestPost()
    {

    }


}